home *** CD-ROM | disk | FTP | other *** search
/ Gekkan Dennou Club 145 / Gekkan Dennou Club - 2000.6 Vol. 145 (Japan).7z / Gekkan Dennou Club - 2000.6 Vol. 145 (Japan) (Track 1).bin / tools / sharp / sxwork1i.lzh / SXWORK1.XDF / INCLUDE / WINDOW.H < prev   
Text File  |  1994-02-20  |  4KB  |  199 lines

  1. /*
  2.  * window.h X68k SX_SYSTEM ver 2.01 Copyright 1994 SHARP/First Class Technology
  3.  */
  4. #ifndef __WINDOW_H
  5. #define __WINDOW_H
  6.  
  7. #ifndef __SXDEF2_H
  8. #include <sxdef2.h>
  9. #endif
  10.  
  11. #ifdef FORWORD
  12. #define __PROTO_TYPE
  13. #endif
  14. #ifdef __STDC__
  15. #define __PROTO_TYPE
  16. #endif
  17.  
  18. typedef enum WDEFRscID    WDEFRscID;
  19. typedef enum WDEFCommand WDEFCommand;
  20. typedef enum WPartCode    WPartCode;
  21.  
  22. typedef struct WIND    WIND;
  23. /*
  24.  *    ウィンドウマン(Window Man)
  25.  */
  26. #define W_FRONT        ((Window *) -1)
  27.  
  28. enum WDEFRscID {
  29.     WI_STD        = 0x20,
  30.     WI_PLN        = 0x24,
  31.     WI_DLG        = 0x26,
  32.     WI_EDLG,
  33.     WI_STDG        = 0x30,
  34.     WI_STD2,
  35.     WI_STDG2
  36. };
  37.  
  38. enum WDEFCommand {
  39.     CMD_WDRAW,
  40.     CMD_WWHERE,
  41.     CMD_WCALC,
  42.     CMD_WNEW,
  43.     CMD_WDISP,
  44.     CMD_WSIZE,
  45.     CMD_WSBOX,
  46.     CMD_WFILL,
  47.     CMD_WMOVE
  48. };
  49.  
  50. enum WPartCode {
  51.     W_INDESK,
  52.     W_INSUBWIN,
  53.     W_ININSIDE    =  3,
  54.     W_INDRAG,
  55.     W_INSIZE    =  6,
  56.     W_INCLOSE,
  57.     W_INZMOUT,
  58.     W_INZMIN,
  59.     W_INARROW    = 13,
  60.     W_INCLPON,
  61.     W_INCLPOFF,
  62.     W_INDRIVE,
  63.     W_INACTIVE    =   0,
  64.     W_ACTIVE    = 255
  65. };
  66.  
  67. #define W_DIALOG    0x02
  68. #define W_USER        0x08
  69. #define W_GRAPHIC    0x10
  70. #define W_SUBWIN    0x20
  71.  
  72. #define W_SCROLL    1
  73. #define W_CLIP        (1 << 1)
  74. #define W_DRIVE        (1 << 2)
  75. #define W_SBOX        (1 << 3)
  76. #define W_SBOXON    (1 << 8)
  77. #define W_ARROW        (1 << 9)
  78. #define W_CLIPON    (1 << 15)
  79.  
  80. struct WIND {
  81.     Rect bounds;
  82.     short defID;
  83.     short visible;
  84.     short close;
  85.     long taskID;
  86.     LASCII title;
  87. };
  88. /*
  89.  *    サブウィンドウマン(Sub Window Man)
  90.  */
  91. #define WS_RUBBERBAND    0xcccc
  92.  
  93. #ifdef __PROTO_TYPE
  94. /*
  95.  *    ウィンドウマン(Window Man)
  96.  */
  97. int WMInit(void);
  98. Window *WMOpen(Window *, Rect *, const _LASCII, BOOLEAN, int, Window *, BOOLEAN, long);
  99. Window *WMRefer(int, Window *, Window *);
  100. int WMClose(Window *);
  101. int WMDispose(Window *);
  102. int WMFind(LPoint, Window **);
  103. int WMSelect(Window *);
  104. int WMCarry2(Window *, Window *);
  105. int WMCarry(Window *, Window *);
  106. int WMShine(Window *, int);
  107. int WMMove(Window *, LPoint, BOOLEAN);
  108. int WMSize(Window *, LPoint, BOOLEAN);
  109. LPoint WMGrow(Window *, LPoint, Rect *);
  110. int WMDrag(Window *, LPoint, Rect *);
  111. int WMZoom(Window *, int, BOOLEAN);
  112. int WMShow(Window *);
  113. int WMHide(Window *);
  114. int WMShowHide(Window *, BOOLEAN);
  115. int WMCheckBox(Window *, LPoint, int);
  116. int WMCheckCBox(Window *, LPoint);
  117. int WMDrawGBox(Window *);
  118. int WMUpdate(Window *);
  119. int WMUpdtOver(Window *);
  120. Window *WMActive(void);
  121. int WMAddRect(Rect *);
  122. int WMAddRgn(Region **);
  123. int WMSubRect(Rect *);
  124. int WMSubRgn(Region **);
  125. int WMGScriptSet(GScript **);
  126. int WMTitleSet(Window *, const _LASCII);
  127. int WMTitleGet(Window *, _LASCII);
  128. int WMTIDSet(long);
  129. long WMTIDGet(void);
  130. GScript ***WMGetDTGS(void);
  131. LPoint WMDragRgn(Region **, LPoint, Rect *, Rect *, int, void (*)());
  132. unsigned short WMOptionGet(void);
  133. void WMOptionSet(unsigned short);
  134. BOOLEAN WMPtInGBox(LPoint);
  135. /*
  136.  *    サブウィンドウマン(Sub Window Man)
  137.  */
  138. Subwin *WSOpen(Subwin *, Region **, unsigned long);
  139. int WSClose(Subwin *);
  140. int WSDispose(Subwin *);
  141. int WSEnlist(Subwin *);
  142. int WSDelist(Subwin *);
  143.  
  144. #undef __PROTO_TYPE
  145. #else
  146. /*
  147.  *    ウィンドウマン(Window Man)
  148.  */
  149. int WMInit();
  150. Window *WMOpen();
  151. Window *WMRefer();
  152. int WMClose();
  153. int WMDispose();
  154. int WMFind();
  155. int WMSelect();
  156. int WMCarry2();
  157. int WMCarry();
  158. int WMShine();
  159. int WMMove();
  160. int WMSize();
  161. LPoint WMGrow();
  162. int WMDrag();
  163. int WMZoom();
  164. int WMShow();
  165. int WMHide();
  166. int WMShowHide();
  167. int WMCheckBox();
  168. int WMCheckCBox();
  169. int WMDrawGBox();
  170. int WMUpdate();
  171. int WMUpdtOver();
  172. Window *WMActive();
  173. int WMAddRect();
  174. int WMAddRgn();
  175. int WMSubRect();
  176. int WMSubRgn();
  177. int WMGScriptSet();
  178. int WMTitleSet();
  179. int WMTitleGet();
  180. int WMTIDSet();
  181. long WMTIDGet();
  182. GScript ***WMGetDTGS();
  183. LPoint WMDragRgn();
  184. unsigned short WMOptionGet();
  185. void WMOptionSet();
  186. BOOLEAN WMPtInGBox();
  187. /*
  188.  *    サブウィンドウマン(Sub Window Man)
  189.  */
  190. Subwin *WSOpen();
  191. int WSClose();
  192. int WSDispose();
  193. int WSEnlist();
  194. int WSDelist();
  195.  
  196. #endif __PROTO_TYPE
  197.  
  198. #endif __WINDOW_H
  199.